package com.studentexam.student.dao;

import com.studentexam.student.model.Exam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExamMapper {
    int insertExam(Exam exam);

    int updateExam(Exam exam);

    int delExam(Integer examid);

    List<Exam> getByExamid(Integer examid);

    List<Exam> getAllExam(Exam exam);


    /*外键查询方法*/
    int getClassCount(Integer classid);

    int getTeacherCount(Integer teacherid);
}
